package com.tcode.springbootweb.config;

import com.tcode.springbootweb.bean.UserBean;
import com.tcode.springbootweb.server.UserClient;
import org.springframework.stereotype.Component;

@Component
public class UserFeignFallBack implements UserClient {
    @Override
    public UserBean selectUserByID(int id) {
        UserBean user= new UserBean();
        user.setUid(id);
        user.setUname("feign 登场");
        user.setPhone("feign 又登场");
        return user;
    }
}
